<?xml version="1.0" encoding="UTF-8"?>

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
           id="org.apache.cordova.file"
      version="0.2.5">
    <name>File</name>
    <description>Cordova File Plugin</description>
    <license>Apache 2.0</license>
    <keywords>cordova,file</keywords>
    <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git</repo>
    <issue>https://issues.apache.org/jira/browse/CB/component/12320651</issue>

    <js-module src="www/DirectoryEntry.js" name="DirectoryEntry">
        <clobbers target="window.DirectoryEntry" />
    </js-module>

    <js-module src="www/DirectoryReader.js" name="DirectoryReader">
        <clobbers target="window.DirectoryReader" />
    </js-module>

    <js-module src="www/Entry.js" name="Entry">
        <clobbers target="window.Entry" />
    </js-module>

    <js-module src="www/File.js" name="File">
        <clobbers target="window.File" />
    </js-module>

    <js-module src="www/FileEntry.js" name="FileEntry">
        <clobbers target="window.FileEntry" />
    </js-module>

    <js-module src="www/FileError.js" name="FileError">
        <clobbers target="window.FileError" />
    </js-module>

    <js-module src="www/FileReader.js" name="FileReader">
        <clobbers target="window.FileReader" />
    </js-module>

    <js-module src="www/FileSystem.js" name="FileSystem">
        <clobbers target="window.FileSystem" />
    </js-module>

    <js-module src="www/FileUploadOptions.js" name="FileUploadOptions">
        <clobbers target="window.FileUploadOptions" />
    </js-module>

    <js-module src="www/FileUploadResult.js" name="FileUploadResult">
        <clobbers target="window.FileUploadResult" />
    </js-module>

    <js-module src="www/FileWriter.js" name="FileWriter">
        <clobbers target="window.FileWriter" />
    </js-module>

    <js-module src="www/Flags.js" name="Flags">
        <clobbers target="window.Flags" />
    </js-module>

    <js-module src="www/LocalFileSystem.js" name="LocalFileSystem">
        <!-- Non-standards way -->
        <clobbers target="window.LocalFileSystem" />
        <!-- Standards-compliant way -->
        <merges target="window" />
    </js-module>

    <js-module src="www/Metadata.js" name="Metadata">
        <clobbers target="window.Metadata" />
    </js-module>

    <js-module src="www/ProgressEvent.js" name="ProgressEvent">
        <clobbers target="window.ProgressEvent" />
    </js-module>

    <js-module src="www/requestFileSystem.js" name="requestFileSystem">
        <clobbers target="window.requestFileSystem" />
    </js-module>

    <js-module src="www/resolveLocalFileSystemURI.js" name="resolveLocalFileSystemURI">
        <clobbers target="window.resolveLocalFileSystemURI" />
    </js-module>

    <!-- android -->
    <platform name="android">
        <config-file target="res/xml/config.xml" parent="/*">
            <feature name="File" >
                <param name="android-package" value="org.apache.cordova.file.FileUtils"/>
            </feature>
        </config-file>

        <config-file target="AndroidManifest.xml" parent="/*">
            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
        </config-file>

        <source-file src="src/android/EncodingException.java" target-dir="src/org/apache/cordova/file" />
        <source-file src="src/android/FileExistsException.java" target-dir="src/org/apache/cordova/file" />
        <source-file src="src/android/InvalidModificationException.java" target-dir="src/org/apache/cordova/file" />
        <source-file src="src/android/NoModificationAllowedException.java" target-dir="src/org/apache/cordova/file" />
        <source-file src="src/android/TypeMismatchException.java" target-dir="src/org/apache/cordova/file" />
        <source-file src="src/android/FileUtils.java" target-dir="src/org/apache/cordova/file" />
        <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/file" />
        <source-file src="src/android/DirectoryManager.java" target-dir="src/org/apache/cordova/file" />
    </platform>

    <!-- ios -->
    <platform name="ios">
        <config-file target="config.xml" parent="/*">
            <feature name="File">
                <param name="ios-package" value="CDVFile" />
            </feature>
        </config-file>
        <header-file src="src/ios/CDVFile.h" />
        <source-file src="src/ios/CDVFile.m" />

        <!-- ios specific file apis -->
        <js-module src="www/ios/Entry.js" name="Entry1">
            <merges target="window.Entry" />
        </js-module>

        <framework src="AssetsLibrary.framework" />
        <framework src="MobileCoreServices.framework" />
    </platform>

    <!-- wp7 -->
    <platform name="wp7">
        <config-file target="config.xml" parent="/*">
            <feature name="File">
                <param name="wp-package" value="File"/>
            </feature>
        </config-file>

        <source-file src="src/wp/File.cs" />

        <!-- wp specific file apis -->
        <js-module src="www/wp/FileUploadOptions.js" name="FileUploadOptions1">
            <merges target="window.FileUploadOptions" />
        </js-module>

    </platform>

    <!-- wp8 -->
    <platform name="wp8">
        <config-file target="config.xml" parent="/*">
            <feature name="File">
                <param name="wp-package" value="File"/>
            </feature>
        </config-file>

        <source-file src="src/wp/File.cs" />

        <!-- wp specific file apis -->
        <js-module src="www/wp/FileUploadOptions.js" name="FileUploadOptions1">
            <merges target="window.FileUploadOptions" />
        </js-module>

    </platform>

    <!-- blackberry10 -->
    <platform name="blackberry10">
        <config-file target="www/config.xml" parent="/widget">
            <feature name="File" value="File" />
        </config-file>
        <js-module src="www/blackberry10/fileUtils.js" name="BB10Utils" />
        <js-module src="www/blackberry10/DirectoryEntry.js" name="BB10DirectoryEntry">
            <clobbers target="window.DirectoryEntry" />
        </js-module>
        <js-module src="www/blackberry10/DirectoryReader.js" name="BB10DirectoryReader">
            <clobbers target="window.DirectoryReader" />
        </js-module>
        <js-module src="www/blackberry10/Entry.js" name="BB10Entry">
            <clobbers target="window.Entry" />
        </js-module>
        <js-module src="www/blackberry10/File.js" name="BB10File">
            <clobbers target="window.File" />
        </js-module>
        <js-module src="www/blackberry10/FileEntry.js" name="BB10FileEntry">
            <clobbers target="window.FileEntry" />
        </js-module>
        <js-module src="www/blackberry10/FileReader.js" name="BB10FileReader">
            <clobbers target="window.FileReader" />
        </js-module>
        <js-module src="www/blackberry10/FileSystem.js" name="BB10FileSystem">
            <clobbers target="window.FileSystem" />
        </js-module>
        <js-module src="www/blackberry10/FileWriter.js" name="BB10FileWriter">
            <clobbers target="window.FileWriter" />
        </js-module>
        <js-module src="www/blackberry10/requestFileSystem.js" name="BB10requestFileSystem">
            <clobbers target="window.requestFileSystem" />
        </js-module>
        <js-module src="www/blackberry10/resolveLocalFileSystemURI.js" name="BB10resolveLocalFileSystemURI">
            <clobbers target="window.resolveLocalFileSystemURI" />
        </js-module>

        <source-file src="src/blackberry10/index.js"></source-file>
    </platform>

    <!-- windows8 -->
    <platform name="windows8">
        <js-module src="src/windows8/FileProxy.js" name="FileProxy">
            <merges target="" />
        </js-module>
    </platform>

</plugin>
